package com.czy.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author czy
 * @date 2022-1-25 23:49
 */
@Component
@ConfigurationProperties(prefix = "person")
@Data
public class PersonConfig {
    private Integer age;

    private String name;

    private List<String> hobby;
}
